<?php /* Smarty version Smarty3-RC3, created on 2013-10-10 09:57:20
         compiled from ".\templates\garnuList.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2910052567a0100c926-56116634%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '26d16a72a916e65a17ecd5084a7afef334b323b0' => 
    array (
      0 => '.\\templates\\garnuList.tpl',
      1 => 1379588442,
    ),
  ),
  'nocache_hash' => '2910052567a0100c926-56116634',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_function_html_select_date')) include 'D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sil1\include\Smarty\libs\plugins\function.html_select_date.php';
if (!is_callable('smarty_modifier_string_format')) include 'D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sil1\include\Smarty\libs\plugins\modifier.string_format.php';
?><?php $_template = new Smarty_Internal_Template("header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<form name="form2" action="<?php echo $_SERVER['PHP_SELF'];?>
" method="GET">
<table border="0" align="center">
  <tr>
    <td align="center" class="table1" colspan="9">**** Garnu ****</td>
  </tr>
	<tr>
	  <td class="table1" align="center" colspan="9">
			Select From : <?php echo smarty_function_html_select_date(array('prefix'=>"fromDate",'start_year'=>"-5",'end_year'=>"+2",'field_order'=>"DMY",'time'=>$_smarty_tpl->getVariable('fromDate')->value,'day_value_format'=>"%02d"),$_smarty_tpl->smarty,$_smarty_tpl);?>

			To : <?php echo smarty_function_html_select_date(array('prefix'=>"toDate",'start_year'=>"-2",'end_year'=>"+1",'field_order'=>"DMY",'time'=>$_smarty_tpl->getVariable('toDate')->value,'day_value_format'=>"%02d"),$_smarty_tpl->smarty,$_smarty_tpl);?>

		  <input type="submit" name="submitDateBtn" value="GO..." class="button"/>
		</td>
	</tr>	
	<tr>
    <td class="table1" align="center"> Edit Records </td>
    <td class="table1" align="center">Name</td>
    <td class="table1" align="center">Date</td>
    <td class="table1" align="center">Weight</td>
    <td class="table1" align="center">Return Weight</td>
    <td class="table1" align="center">Ghat</td>
    <td class="table1" align="center">Touch</td>
    <td class="table1" align="center">Silver</td>
    <td class="table1" align="center">Copper</td>
  </tr>
  <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['name'] = "sec";
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'] = is_array($_loop=count($_smarty_tpl->getVariable('garnuMasterIdArray')->value)) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total']);
?>
  <tr>
    <td class="table2" align="center">
    	<a href="garnuEdit.php?garnuMasterId=<?php echo $_smarty_tpl->getVariable('garnuMasterIdArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['garnuMasterId'];?>
" class="link">Edit</a>&nbsp;   
      <a href="garnuOther.php?garnuMasterId=<?php echo $_smarty_tpl->getVariable('garnuMasterIdArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['garnuMasterId'];?>
" class="link">Print</a> &nbsp;    
      <a href="garnuListDelete.php?garnuMasterId=<?php echo $_smarty_tpl->getVariable('garnuMasterIdArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['garnuMasterId'];?>
" class="link"onclick="return confirm('Are You Sure?');"><img src="./images/deleteIcon.png" border="0" width="15" height="15"></a>    
    </td>
    <td class="table2" align="left"><?php echo $_smarty_tpl->getVariable('garnuMasterIdArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['garnuName'];?>
</td>
    <td class="table2" align="center" nowrap><?php echo $_smarty_tpl->getVariable('garnuMasterIdArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['garnuDate'];?>
</td>
    <td class="table2" align="right"><?php echo $_smarty_tpl->getVariable('garnuMasterIdArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['weight'];?>
</td>
    <td class="table2" align="right"><?php echo $_smarty_tpl->getVariable('garnuMasterIdArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['returnWeight'];?>
</td>
    <td class="table2" align="right"><?php echo $_smarty_tpl->getVariable('garnuMasterIdArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['ghat'];?>
</td>
    <td class="table2" align="right"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('garnuMasterIdArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['touch'],"%.0f");?>
</td>
    <td class="table2" align="right"><?php echo $_smarty_tpl->getVariable('garnuMasterIdArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['silver'];?>
</td>
    <td class="table2" align="right"><?php echo $_smarty_tpl->getVariable('garnuMasterIdArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['copper'];?>
</td>
  </tr>
  <?php endfor; endif; ?>
  <tr>
    <td colspan="3" class="table2" align="center"><b>Total :</b></td>
    <td class="table2" align="right"><b><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('garnuTotalWeight')->value,"%.0f");?>
</b></td>
    <td class="table2" align="right"><b><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('garnuReturnTotalWeight')->value,"%.0f");?>
</b></td>
    <td class="table2" align="right"><b><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('garnuTotalGhat')->value,"%.0f");?>
</b></td>
    <td class="table2" align="right"><b><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('garnuTotalTouch')->value,"%.0f");?>
</b></td>
    <td class="table2" align="right"><b><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('garnuTotalSilver')->value,"%.0f");?>
</b></td>
    <td class="table2" align="right"><b><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('garnuTotalCopper')->value,"%.0f");?>
</b></td>				   				   
  </tr>         
</table>